import {
	service
} from '@/service/service.js'

const state = {
	// 订单确认参数
	orderConfirmParams: {},
	// 新建订单信息
	createdOrderDetails: {},
}

const getters = {}

const actions = {

}

const mutations = {
	/**
	 * @desc 存储订单确认参数
	 * @param {*} state 
	 * @param {*} payload 
	 */
	setConfirmParams(state, payload) {
		state.orderConfirmParams = payload
	},
	/**
	 * @desc 存储订单确认参数
	 * @param {*} state 
	 * @param {*} payload 
	 */
	setCreatedOrderDetails(state, payload) {
		state.createdOrderDetails = payload
	},

}

export default {
	namespaced: true,
	state,
	getters,
	actions,
	mutations
}
